package hw2.cs236369.tests;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import hw2.cs236369.parsing.Author;

import org.junit.Test;


public class AuthorTest {

	@Test
	public void testAuthor() {
		Author a = new Author("x");
		assertEquals("x", a.getName());
	}

	@Test
	public void testAuthorEquals() {
		Author a = new Author("A");
		Author b = new Author("B");
		Author c = new Author("A");
		assertFalse(a.equals(b));
		assertFalse(c.equals(b));
		assertTrue(a.equals(c));
		assertTrue(a.equals(a));
	}

}
